package com.zhangpu.feign.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author: zhangpu
 * @License: (C) Copyright hualala.com Corporation Limited.
 * @Contact: zhangpu@hualala.com
 * @Date: 2021.07.20 11:58
 * @Version: 1.0
 * @Description: 基于feign进行配置hystrix
 * @ProjectName: spring-cloud-eureka
 */

@FeignClient(value = "SPRING-CLOUD-PRODUCER",fallback = SchedualServiceHystrix.class)
public interface FeignHystrixService {

    @RequestMapping(value = "/hi/{name}",method = RequestMethod.GET)
    public String getSpringcloudInfo(@RequestParam("name") String name);
}